Skip to main content

Setup

React Native

To setup in a React Native App you need to create a file for tailwind configuration in the root of the project named tailwind.config.js in which you indicate the configuration

Please refer to the official documentation of tailwind to learn about tailwind configuration

Example: tailwind.config.js

module.exports = {
content: ['./src/**/*.{html,js}'],
theme: {
colors: {
'blue': '#1fb6ff',
'purple': '#7e5bef',
'pink': '#ff49db',
'orange': '#ff7849',
'green': '#13ce66',
'yellow': '#ffc82c',
'gray-dark': '#273444',
'gray': '#8492a6',
'gray-light': '#d3dce6',
},
fontFamily: {
sans: ['Graphik', 'sans-serif'],
serif: ['Merriweather', 'serif'],
},
extend: {
spacing: {
'8xl': '96rem',
'9xl': '128rem',
},
borderRadius: {
'4xl': '2rem',
}
}
},
}

Next.js

In process...